import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import Settings from '../components/Settings'
import Simulate from '../components/Simulate'
import BasicLayout from '../components/BasicLayout'
import CreateProject from '../components/CreateProject'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/login',
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: BasicLayout,
      children: [
        {
          path: 'settings',
          name: 'Settings',
          component: Settings
        },
        {
          path: 'createProject',
          name: 'CreateProject',
          component: CreateProject
        }
      ]
    },
    {
      path: '/simulate',
      name: 'Simulate',
      component: Simulate
    }
  ]
})
